package com.jsu.information.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.model.common.dtos.ResponseResult;
import org.example.model.information.pojo.Download;
import org.springframework.web.multipart.MultipartFile;

public interface DownLoadService extends IService<Download> {
    /**
     * 获取所有咨询
     * @return
     */
    ResponseResult getAllDownload();

    /**
     * 获取某个单独
     * @param id
     * @return
     */
    ResponseResult getDownload(Integer id);

    /**
     * 新增下载链接
     * @param download
     * @return
     */
    ResponseResult addDownload(Download download);

    /**
     * 删除
     * @param id
     * @return
     */
    ResponseResult deleteDownload(Integer id);

    /**
     * 修改链接
     * @param download
     * @return
     */
    ResponseResult updateDownload(Download download);

    /**
     * 上传
     * @param file
     * @return
     */
    ResponseResult uploadExcel(MultipartFile file);

    /**
     * 导出
     * @param fileName
     * @return
     */
    ResponseResult exportExcel(String fileName);
}
